/**
 * \file Log.h
 * \brief Header file for the \a Log class.
 * \ingroup Gui
 */

#ifndef LOG_H
#define LOG_H

#include<QPlainTextEdit>

/**
 * \class Log
 * \brief Text editor/displayer for logging purposes. A singleton.
 * \ingroup Gui
 */

class Log: public QPlainTextEdit{
Q_OBJECT
public:
	static Log *instance();///<Returns the instance of this singleton.
	
	void log(QString text);///<Logs some text. \param text The text to be displayed.
	//void clear(), exists in parent.
private:
	Log();
	static Log *_instance;///<Instance pointer.
};

#define sLog Log::instance()
///<For easy access of the \a Log.

#endif
